<style type="text/css">
.storelogo img{width:3.2rem;height:3.2rem}
.merchgroup .store-star {padding:0.1rem 0 0.2rem 0;font-size:0.55rem;line-height:1rem}
.merchgroup .store-star img{height:0.66rem}
.star-on,.star-off{position:absolute;top:1rem;left:0;overflow:hidden}
.star-rate {margin-left:3.6rem}
.store-distance{float:right;color:#999}
.store-moneylimit{font-size:0.55rem}
</style>
<div class="fui-page  fui-page-current page-goods-list" ng-if="pagedata.showarea !=1">
<div class="fui-content" style="top:0">
		<div class="fui-tab-scroll" ng-if="pagedata.p_group.length>0">
			<div ng-class="{'item':1,'on':pagedata.params.pid==0}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.pid=0;tool.get_list('jy_weishop/goods.index/getlist/order=ishot',true)">热卖推荐</a></div>
			<div ng-repeat="tab in pagedata.p_group" style="height:2rem;line-height:1.5rem" ng-class="{'item':1,'on':pagedata.params.pid==tab.id}"><a href="javascript:;" ng-click="pagedata.params.pid=tab.id;tool.get_list('jy_weishop/goods.index/getlist/pcate='+tab.id,true)">{{tab.title}}</a></div>
			<div ng-if="!pagedata.p_group || pagedata.p_group.length<1" ng-class="{'item':1,'on':pagedata.params.pid==-1}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.pid=-1;tool.get_list('jy_weishop/goods.index/getlist/',true)">其他商品</a></div>
		</div>
		<div class='content-empty' style='display:none;'>
		<i class='icon icon-searchlist'></i><br/>暂时没有任何商品
	    </div>
	    <div class="fui-goods-group container block" id="goods-list-container">
		<div ng-repeat="g in pagedata.list" class="fui-goods-item">
		  <a href="javascript:" ng-click="access_json('jy_weishop/goods.detail//id='+g.id)">
		  <div class="image" style="background-image: url('{{tomedia(g.image)}}')">
				<div ng-show="g.total<=0" class="salez" style="background-image: url('{{tomedia(pagedata.setting.shop.saleout)}}'); "></div>
		  </div>
		</a>
		<div class="detail">
			<a href="javascript:" ng-click="access_json('jy_weishop/goods.detail//id='+g.id)">
			<div class="name">{{g.title}}</div>
		   </a>
			<div class="price">
			   <span class="text" style="color:#00c568">￥{{g.price}}</span>
			   <span class="buy"  style="color:#00c568;border: 1px solid #00c568;">购买</span>
			   </div>
			</div>
		</div>
		</div>
	   <!-- <div id="loading" class='infinite-loading'><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>  -->
</div>
</div>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>
<script>
scope.tool.get_list('jy_weishop/goods.index/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop/goods.index/getlist/');
}
</script>
<div ng-include="sys_html('_footer')"></div>